package com.test.base.dao;
import com.test.base.entity.NideshopGoodsAttribute;
import java.util.List;

import com.test.base.entity.NideshopGoodsAttributeExt;
import com.test.base.utils.Assist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface NideshopGoodsAttributeDao{
	/**
	 * 获得NideshopGoodsAttribute数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    long getNideshopGoodsAttributeRowCount(Assist assist);
	/**
	 * 获得NideshopGoodsAttribute数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    List<NideshopGoodsAttribute> selectNideshopGoodsAttribute(Assist assist);
	/**
	 * 获得一个NideshopGoodsAttribute对象,以参数NideshopGoodsAttribute对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    NideshopGoodsAttribute selectNideshopGoodsAttributeByObj(NideshopGoodsAttribute obj);
	/**
	 * 通过NideshopGoodsAttribute的id获得NideshopGoodsAttribute对象
	 * @param id
	 * @return
	 */
    NideshopGoodsAttribute selectNideshopGoodsAttributeById(Object id);

	/**
	 * 	nideshop_goods_attribute 联合查询根据goodsId 筛选
	 */
	List<NideshopGoodsAttributeExt> selectNideshopGoodsAttributeByGoodsId(Long goodsId);
	/**
	 * 插入NideshopGoodsAttribute到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertNideshopGoodsAttribute(NideshopGoodsAttribute value);
	/**
	 * 插入NideshopGoodsAttribute中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyNideshopGoodsAttribute(NideshopGoodsAttribute value);
	/**
	 * 通过NideshopGoodsAttribute的id删除NideshopGoodsAttribute
	 * @param id
	 * @return
	 */
    int deleteNideshopGoodsAttributeById(Object id);
	/**
	 * 通过辅助工具Assist的条件删除NideshopGoodsAttribute
	 * @param assist
	 * @return
	 */
    int deleteNideshopGoodsAttribute(Assist assist);
	/**
	 * 通过NideshopGoodsAttribute的id更新NideshopGoodsAttribute中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateNideshopGoodsAttributeById(NideshopGoodsAttribute enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopGoodsAttribute中的数据,包括null值
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNideshopGoodsAttribute(@Param("enti") NideshopGoodsAttribute value, @Param("assist") Assist assist);
	/**
	 * 通过NideshopGoodsAttribute的id更新NideshopGoodsAttribute中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyNideshopGoodsAttributeById(NideshopGoodsAttribute enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopGoodsAttribute中属性不为null的数据
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNonEmptyNideshopGoodsAttribute(@Param("enti") NideshopGoodsAttribute value, @Param("assist") Assist assist);
}